'''
梁洁
'''

import  math
class HeightException(Exception):
    def  __init__(self, value):
        self.value = value
    def  __str__(self):
        return "异常信息：身高应处于0.3-2.5，输入的身高是：{}"\
            .format(self.value)
    def computeBMI():
    height = float(input('请输入身高(m): '))
    if height < 0.3 or height > 2.5:
        raise HeightException(height)
    weight = float()

